// const root = process.env.VUE_APP_API_ROOT;
import fetch from './http.js'
// export default {
// by hey
  // getImgCode:()=> fetch({url:'/index.php/dataofuser/getpiccode',method:'get',params: {}}), // 获取验证码
  // login:(data)=>  fetch({url:'/index.php/dataofuser/login',method:'post',params:data})
// };
export  const getImgCode=()=>fetch({url:'/index.php/dataofuser/getpiccode',method:'get',params:{}}) //获取验证码
export const login=(data)=>  fetch({url:'/index.php/dataofuser/login',method:'post',params:data}) // 登录
export const getUserList=(data)=>  fetch({url:'/index.php/dataofuser/getUserList',method:'post',params:data}) // 获取用户列表
export const getTeamList=(data)=>  fetch({url:'/index.php/dataofuser/getTeamList',method:'post',params:data}) // 获取团队列表
export const getTreeList=(data)=>  fetch({url:'/index.php/dataofuser/getTreeList',method:'post',params:data}) // 获取树型结构
export const getPureMoneyData=(data)=>  fetch({url:'/index.php/dataofuser/getPureMoneyData',method:'post',params:data}) // 获取净资金流入
export const getIntoMoneyData=(data)=>  fetch({url:'/index.php/dataofuser/getIntoMoneyData',method:'post',params:data}) // 获取入金统计
export const getOutMoneyData=(data)=>  fetch({url:'/index.php/dataofuser/getOntoMoneyData',method:'post',params:data}) // 获取出金统计
export const userIntoQuery=(data)=>  fetch({url:'/index.php/dataofuser/userIntoQuery',method:'post',params:data}) // 用户回本查询
export const getNewAddOrder=(data)=>  fetch({url:'/index.php/dataofuser/getNewAddOrder',method:'post',params:data}) // 新增持仓查询
export const getIntoMoneyRank=(data)=>  fetch({url:'/index.php/dataofuser/getIntoMoneyRank',method:'post',params:data}) // 入金排行榜
export const getOutMoneyRank=(data)=>  fetch({url:'/index.php/dataofuser/getOutMoneyRank',method:'post',params:data}) // 出金排行榜
